const mongoose = require("mongoose");


const studentSchema = new mongoose.Schema({
    avatar:String,
    gender:String,
    name:String,
    password:String,
    phone:String
});

//关联集合
mongoose.model('studentModel', studentSchema, 'students');

//暴露模型名
module.exports.modelName = 'studentModel';